class RoomTypeUploader < CarrierWave::Uploader::Base
  include CarrierWave::MiniMagick

  storage :file

  def store_dir
    "uploads/#{model.class.to_s.underscore}/#{model.id}"
  end

  version :large do
    resize_to_fill(693, 283)
  end

  version :thumb do
    resize_to_fill(128, 102)
  end

  version :small do
    resize_to_fill(80, 80)
  end
end
